I=-I ./include -I /usr/local/cern/root/include -I /usr/local/cern/geant4.9.3.p01/include
L=-L/usr/local/cern/root/lib -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lGui -pthread -lm -ldl -rdynamic

all: 3p0phd

clean:
	rm ./build/*
	
3p0phd: main.o DataReader.o Analyze.o
	g++ -o ./bin/3p0phd ./build/main.o ./build/DataReader.o ./build/Analyze.o $L

main.o:
	g++ -c -o ./build/main.o ./main.cpp $I
	
DataReader.o:
	g++ -c -o ./build/DataReader.o ./src/DataReader.cpp $I
	
Analyze.o:
	g++ -c -o ./build/Analyze.o ./src/Analyze.cpp $I
